package com.ibeeking.gmc.global.g.rest.service;

import com.ibeeking.gmc.global.service.common.dos.TenantEnterpriseInfoDO;
import com.ibeeking.gmc.global.service.common.param.TenantEnterpriseInfoParam;
import com.ibeeking.gmc.global.service.common.query.TenantEnterpriseInfoPageQuery;
import com.ibeeking.gmc.global.service.common.query.TenantEnterpriseInfoQuery;
import com.ibeeking.gmc.global.service.common.vo.TenantEnterpriseInfoVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * IEnterpriseInfoService
 *
 * @Author ibeeking
 * @Date 2020-12-24 13:45
 */
public interface ITenantEnterpriseInfoService extends IService<TenantEnterpriseInfoDO> {

    /***
     * 查询列表
     */
    List<TenantEnterpriseInfoVO> list(TenantEnterpriseInfoQuery query);

    /***
     * 分页查询
     */
    Page<TenantEnterpriseInfoVO> pageList(TenantEnterpriseInfoPageQuery pageQuery);

    /***
     * 新增
     */
    Boolean add(TenantEnterpriseInfoParam param);

    /***
     * 修改
     */
    Boolean modify(TenantEnterpriseInfoParam param);

    /***
     * 通过id查询
     */
    TenantEnterpriseInfoVO view(Long id);

    /***
     * 存在
     */
    Boolean exist(Long id);

    /***
     * 通过id删除
     */
    Boolean del(Long id);

    Boolean delByTenantId(Integer tenantId);

    TenantEnterpriseInfoVO viewByTenantId(Integer tenantId);

    Boolean save(TenantEnterpriseInfoParam param);

    Boolean changeStatus(Integer tenantId, Integer auditStatus);

}
